package cn.zhou;

public class test3 {
    public static void main(String[] args) {
        int a=0;
        for (int i = 1; i <=100; i++) {
            if (i%3==0&&i%5==0){
                System.out.println(i);
                a=a+i;
            }
        }
        System.out.println("以上满足条件的数字之和: "+a);
    }
}
